package com.cnswhy.cloud.server.core.service.customer.impl;


import com.cnswhy.cloud.server.core.dao.CustomerPrivilegeMapper;
import com.cnswhy.cloud.server.core.entity.CustomerPrivilege;
import com.cnswhy.cloud.server.core.service.customer.CustomerPrivilegeService;
import com.cnswhy.cloud.common.core.base.service.SuperServiceImpl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 业务实现类
 * 
 * </p>
 *
 * @author cnswhy
 * @date 2020-10-16
 */
@Slf4j
@Service

public class CustomerPrivilegeServiceImpl extends SuperServiceImpl<CustomerPrivilegeMapper, CustomerPrivilege> implements CustomerPrivilegeService {
    @Override
    public int queryCanUse(Long priceId, Long customerId) {
        return baseMapper.queryCanUse(priceId,customerId);
    }
    @Override
    public List<CustomerPrivilege> queryCustomerPrivilegeList(Long priceId, Long customerId) {
        return baseMapper.queryCustomerPrivilegeList(priceId,customerId);
    }
}
